# -*- encoding : utf-8 -*-
# 语言文件
class Lang
    @@cn = {
        :collect => '抓取',
        :page => '单个页面',
    }

    @@en = {
        :collect => 'collect ',
        :page => 'single page ',
    }

    @@__ = {
        :collect => '<<<<<<< ',
        :page => '1..1 ',
    }

    def Lang.[](key)
        case key
        when 'cn' then @@cn
        when 'en' then @@en
        when '__' then @@__
        else @@__ #default
        end
    end
    
    private_class_method :new
end
        
